package com.qj.yantaishan.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.beans.factory.annotation.Autowired;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;
import com.qj.yantaishan.mapper.StorePhysicalAssignedMapper;
import com.qj.yantaishan.domain.StorePhysicalAssigned;
import com.qj.yantaishan.service.IStorePhysicalAssignedService;
import com.qj.yantaishan.common.core.text.Convert;

/**
 * 订单商品门店分配记录Service业务层处理
 * 
 * @author qihe
 * @date 2022-07-22
 */
@Service
@Primary
public class StorePhysicalAssignedServiceImpl    extends ServiceImpl<StorePhysicalAssignedMapper, StorePhysicalAssigned>  implements IStorePhysicalAssignedService
{
    @Autowired
    private StorePhysicalAssignedMapper storePhysicalAssignedMapper;

    /**
     * 查询订单商品门店分配记录
     * 
     * @param pigcmsId 订单商品门店分配记录主键
     * @return 订单商品门店分配记录
     */
    @Override
    public StorePhysicalAssigned selectStorePhysicalAssignedByPigcmsId(Long pigcmsId)
    {
        return storePhysicalAssignedMapper.selectStorePhysicalAssignedByPigcmsId(pigcmsId);
    }

    /**
     * 查询订单商品门店分配记录列表
     * 
     * @param storePhysicalAssigned 订单商品门店分配记录
     * @return 订单商品门店分配记录
     */
    @Override
    public List<StorePhysicalAssigned> selectStorePhysicalAssignedList(StorePhysicalAssigned storePhysicalAssigned)
    {
        return storePhysicalAssignedMapper.selectStorePhysicalAssignedList(storePhysicalAssigned);
    }

    /**
     * 新增订单商品门店分配记录
     * 
     * @param storePhysicalAssigned 订单商品门店分配记录
     * @return 结果
     */
    @Override
    public int insertStorePhysicalAssigned(StorePhysicalAssigned storePhysicalAssigned)
    {
        return storePhysicalAssignedMapper.insertStorePhysicalAssigned(storePhysicalAssigned);
    }

    /**
     * 修改订单商品门店分配记录
     * 
     * @param storePhysicalAssigned 订单商品门店分配记录
     * @return 结果
     */
    @Override
    public int updateStorePhysicalAssigned(StorePhysicalAssigned storePhysicalAssigned)
    {
        return storePhysicalAssignedMapper.updateStorePhysicalAssigned(storePhysicalAssigned);
    }

    /**
     * 批量删除订单商品门店分配记录
     * 
     * @param pigcmsIds 需要删除的订单商品门店分配记录主键
     * @return 结果
     */
    @Override
    public int deleteStorePhysicalAssignedByPigcmsIds(String pigcmsIds)
    {
        return storePhysicalAssignedMapper.deleteStorePhysicalAssignedByPigcmsIds(Convert.toStrArray(pigcmsIds));
    }

    /**
     * 删除订单商品门店分配记录信息
     * 
     * @param pigcmsId 订单商品门店分配记录主键
     * @return 结果
     */
    @Override
    public int deleteStorePhysicalAssignedByPigcmsId(Long pigcmsId)
    {
        return storePhysicalAssignedMapper.deleteStorePhysicalAssignedByPigcmsId(pigcmsId);
    }
}
